This is a simple replication file since there is only one table (Table
1) and documentation of Footnote 5 on LogitFE in R. 

For Table 1:

The data are the subset of the data used in the article from "Do Democracies Select More Educated Leaders?," 
TIMOTHY BESLEY and MARTA REYNAL-QUEROL, 
The American Political Science Review, Vol. 105, No. 3 (August 2011),
pp. 552-566.
The dta file is besley.dta. When you download tis, download as Stata
data set (datavrese automatically shows  the file as  .tab but
is really stored as a .dta and downloads that way).
 
The do file produces the Table 1 in the PA piece, the and the Stata
log file (beck_table_1.log) shows the full output. The exact output in
Table 1 is in beck_table_1.txt.

This file runs in approximately 3  seconds

For Footnote 5:

The R file is fn_5.R, the R output from sink is fn_5.txt, the (version
11) Stata data set is besley.dta (same for for Table 1)  which is read
in via read.dta. Make sure you download as Stata 11 dataset (library
foreign does not read later versions of Stata data sets).

The program requires two libraries not in baseR, foreign and
bife. Both are loaded at the start of fn_5.R.

To compare Stata and R fixed effects, note that the reference
categories differ so focus on the difference of the fixed effects
which are identical. Note that the R standard errors are not corrected
for clustering, as in Table 1 and the Besley article.

Execution time is under one second

